1 /* Copyright 2011-2013 The MathWorks, Inc. */
2 #ifndef __TARGET_STDIO_H__
3 #define __TARGET_STDIO_H__
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 /*
9 * The default buffer size is 64 bytes with
10 * 1 bytes reserved for null terminator at the end.
11 *
12 * For LDRA I/O forward support, by default configuration, a minimal
13 * of 25 bytes buffer is enough. LDRA users can change the column
14 * width of output data format, which may exceed this 25 bytes
15 * boundary value. However, the 64 bytes buffer will provide a safer
16 * limit.
17 *
18 */
19
20
21 /*
22 * For compatibility with third party code coverage tools, this header must not
23 * include rtwtypes.h. In particular, we must not use uint16_T in this header
24 * file. Note that unsigned short is guaranteed to be at least 16 bits wide on
25 * any platform; see implementation of targetFopen, targetFprintf for casts that
26 * rely on this guarantee.
27 */
28 extern void targetPrintf(const char * fmt, ...);
29 extern unsigned short targetFopen(const char * fileName);
30 extern void targetFprintf(unsigned short targetFid, const char * fmt, ...);
31
32 #ifdef __cplusplus
33 }
34 #endif /* __cplusplus */
35
36 #endif /* __TARGET_STDIO_H__ */
37
|